package com.linkoog.devtools.archive.filesystem;


import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.util.Map;

/**
 * The basic interface of a archive file,
 * all customized archive types should implement it.
 */
public interface ArchiveFile extends Closeable {

    Map<String, ArchiveHandlerBase.EntryInfo> createEntriesInfoMap() throws IOException;

    byte[] getEntryBytes(String relativePath) throws IOException;

    InputStream getInputStream() throws IOException;

}